package com.ecmcloud.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ecmcloud.service.IFormService;
import com.ecmcloud.vo.FormRemoteSelectOptionParamVo;

/**
 * 表单相关控制器
 */
@RestController
@RequestMapping(value = { "form", "api/form" })
public class FormResource {
	
	@Autowired
	private IFormService formService;

	/**
	 * 获取下拉选项
	 * 
	 * @return
	 */
	@PostMapping("selectOptions")
	public Object selectOptions(@RequestBody FormRemoteSelectOptionParamVo formRemoteSelectOptionParamVo) {
		return formService.selectOptions(formRemoteSelectOptionParamVo);
	}

}
